package com.cff.bean;

public class ViewLog {
	private String type;
	private String desc;
	private String remark;
	private String dateTime;
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getDateTime() {
		return dateTime;
	}
	public void setDateTime(String dateTime) {
		this.dateTime = dateTime;
	}
	
	public String toString(){
		return type+"|" + dateTime + "|" + desc + "|" + remark + "\n";
	}
	
	public void convert(String log){
		String logs[] = log.split("\\|");
		type = logs[0];
		dateTime = logs[1];
		desc = logs[2];
		remark = logs[3];	
	}
}
